package com.c611.smartclassroom.service;

import com.c611.smartclassroom.model.Device;
import com.c611.smartclassroom.model.DeviceVo;

import java.util.List;

public interface DeviceService {
    public List<Device> queryDevice(String buildId, String afGateway, Integer onlineStatus, Integer page, Integer limit);
    public long queryDeviceCount(String buildId, String afGateway, Integer onlineStatus);
    public List<Device> queryDeviceByGateId(String gateWayId);
    public long queryDevicesByAfgatewayCount(String afgateway);
    public List<DeviceVo> queryDevicesByAfgateway(String afgateway);
    public List<Device> queryDeviceByClassId(String classroomId);
    public Device queryDataByDeviceId(String eqId);
    public int addDevice(Device device);
    public int saveDevice(Device device);
    public int delDevice(String eqId);
    public long queryDevicesByTbuildIDClassroomIdCount(String buildId, String classroomId);
    public List<DeviceVo> queryDevicesByTbuildIDClassroomId(String buildId, String classroomId, String controlMode);
    //public DeviceVo queryAirboxByTbuildIDClassroomId(String buildId, String classroomId, String controlMode);

}
